package com.tanhua.server.controller;

import com.tanhua.model.vo.QuestionnaireVo;
import com.tanhua.server.service.TestSoulService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/testSoul")
public class TestSoulController {
    @Autowired
    private TestSoulService testSoulService;

    /**
     * 问卷列表
     * @return
     */
    @GetMapping
    public ResponseEntity findQuestionnaire(){
        List<QuestionnaireVo> questionnaireVoList=testSoulService.findQuestionnaire();
        return ResponseEntity.ok(questionnaireVoList);
    }

}
